#ifndef B2GDNS_REPLY_H
#define B2GDNS_REPLY_H

#include <boost/asio/buffer.hpp>

#include "message.h"

namespace b2gdns {

	class Reply : public Message
	{
	public:
		Reply(Header const& header,
			std::vector<std::string> const& question);

		virtual operator boost::asio::const_buffer() = 0;

	protected:
		void encode_header(char*& buffer);
		void encode_question(char*& buffer);
	};

	inline Reply::Reply(Header const & header,
		std::vector<std::string> const& question)
		: Message(header, question)
	{
	}

} // namespace b2gdns

#endif // B2GDNS_REPLY_H
